package com.forum_migration;
import java.net.URL;
import java.io.*;


public class engine{

    public static void main(String[] args) throws IOException{

    }


    public void grabWebsite(String webSite) throws IOException{
	
	String fileName = "main.html";
	int SIZE = 6;
	char data[] = new char[SIZE];
	
	PrintWriter forumPage = new PrintWriter(fileName);
    
	URL newURL = new URL(webSite);
	BufferedReader webpage = new BufferedReader(new InputStreamReader(newURL.openStream()));

	String inputLine;
	        
	while ((inputLine = webpage.readLine()) != null)
		                
	    forumPage.println(inputLine);
		        

	forumPage.close();
	
	
	
    }
}
